<template>
    <footer class="app-footer">
        <div class="footer-content">
            <div class="footer-section">
                <div class="footer-logo">
                    <h3>💖AI超级智能体应用平台💖</h3>
                </div>
                <div class="footer-links">
                    <a href="#">《用户协议》</a>
                    <a href="#">《隐私政策》</a>
                </div>
            </div>

            <div class="footer-section">
                <h4>❤️友情链接❤️</h4>
                <div class="footer-links">
                    <a href="https://gitee.com/zhangshuaihong" target="_blank"><img class="my-code-repo-logo"
                            src="../assets/gitee-logo.jpg"
                            alt="">个人代码仓库</a>
                    <a href="https://blog.csdn.net/2301_77190282?spm=1010.2135.3001.5343" target="_blank"><img
                            class="my-blog-logo"
                            src="../assets/csdn-logo.jpg"
                            alt="">个人技术博客</a>
                    <a href="#" target="_blank"><img class="my-yvque-note-logo" src="../assets/yq-logo.png"
                            alt="">个人技术笔记语雀文档</a>
                </div>
            </div>

            <div class="footer-section">
                <h4>💫联系我💫</h4>
                <div class="footer-links">
                    <a href="#"></a>
                    <a href="#">💻author: shuaihong-coding</a>
                    <a href="#">📞phone : 15831765695</a>
                    <a href="#">📧email : 2798679648@qq.com</a>
                </div>
            </div>
        </div>

        <div class="footer-bottom">
            <p>© {{ currentYear }} AI超级智能体应用平台 - 让AI为你服务</p>
        </div>
    </footer>
</template>

<script setup>
import { computed } from 'vue'

// 计算当前年份
const currentYear = computed(() => new Date().getFullYear())
</script>

<style scoped>
.my-code-repo-logo {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 4px;
    right: 4px;
}

.my-blog-logo {
    position: relative;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    top: 7px;
    right: 4px;
}

.my-yvque-note-logo {
    position: relative;
    width: 50px;
    height: 30px;
    top: 10px;


}

.app-footer {
    background-color: #fff;
    padding: 40px 0 20px;
    color: #666;
    border-top: 1px solid #eee;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-logo h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #333;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    margin-bottom: 10px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #007bff;
}

.qrcode {
    display: flex;
    align-items: center;
}

.qrcode-container {
    text-align: center;
}

.qrcode-placeholder {
    width: 90px;
    height: 90px;
    background-color: #f5f5f5;
    margin: 0 auto 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.qrcode-placeholder:after {
    content: '🤖';
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .app-footer {
        padding: 30px 0 15px;
    }

    .footer-section h4 {
        font-size: 0.95rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .qrcode-placeholder {
        width: 80px;
        height: 80px;
    }
}
</style>